import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store, { key } from './store'

import installElementPlus from './plugins/element'

import './assets/css/icon.css'
import './assets/css/subject.scss'

const app = createApp(App);
installElementPlus(app)
app.use(store,key)
.use(router)
.mount('#app')

//打开vue调试模式  Vue.js devtools6.0.0 beta 15
const win: any = window
if(process.env.NODE_ENV === 'development') {
  if ('__VUE_DEVTOOLS_GLOBAL_HOOK__' in win) {
    // 这里__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue赋值一个createApp实例
    win.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app
  }
}